package model

import "time"

type PhoneInfo struct {
	GoodID        int       `json:"good_id"`
	GoodName      string    `json:"good_name"`
	GoodImage     string    `json:"good_image"`
	Brand         string    `json:"brand"` //品牌
	StoreID       int       `json:"store_id"`
	ScreenSize    float64   `json:"screen_size"`
	ChargingPower int       `json:"charging_power"`
	IPV6          bool      `json:"ipv6"`
	Turnover      int       `json:"turnover"`
	CommentNum    int       `json:"comment_num"`
	CreateTime    time.Time `json:"create_time"`
	Price         float32   `json:"price"`
}

type PhoneCate struct {
	Brands        []string `json:"brands"`
	ScreenSizes   []string `json:"screen_sizes"`
	ChargingPower []string `json:"charging_power"`
	IPv6          []string `json:"i_pv_6"`
}

var PhoneCategory = PhoneCate{
	Brands: []string{"苹果", "华为", "小米", "荣耀", "OPPO", "vivo",
		"三星", "realme", "魅族", "其他"},
	ScreenSizes:   []string{"6.95英寸及以上", "6.0-6.24英寸", "6.85-6.94英寸", "6.75-6.84英寸", "6.65-6.74英寸"},
	ChargingPower: []string{"50-100W", "40-49W", "30-39W", "20-29W", "10-19W", "其他"},
	IPv6:          []string{"支持IPv6", "不支持IPv6"},
}

var PhoneCateMap = map[string]string{
	"Brands":        "品牌",
	"ScreenSizes":   "屏幕尺寸:",
	"ChargingPower": "充电功率:",
	"支持IPv6:":       "支持IPv6:",
}
